package com.feynman.pattern.factory.abstractfactory;

import com.feynman.pattern.factory.Phone;
import com.feynman.pattern.factory.Xiaomi;

/**
 * @ClassName XiaomiFactory
 * @Description 小米抽象工厂
 * @Author Feynman
 * @date 2019/3/26 14:32
 * @Version V1.0
 **/
public class XiaomiFactory implements AbstractFactory {
    @Override
    public Phone productPhone() {
        return new Xiaomi();
    }

    @Override
    public NoteBookPC productNotebookPC() {
        return new XiaomiBook();
    }

    @Override
    public Watch productWatch() {
        return new XiaomiWacth();
    }
}
